<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0px;
            padding: 0px;
            box-sizing: border-box;
        }

        .father {
            background-color: red;
        }

        /* 父元素的高度由子元素的line-height决定,用于模拟virtual-area */

        .son {
            background-color: yellow;
            font-size: 300px;
        }

        .img {
            background-color: aqua;
            display: inline-block;
            width: 300px;
            height: 300px;
            vertical-align: text-bottom;
            /* 图片底部与content-area底部对齐 */
        }

        /* 用作对比font-size与content-area */
    </style>

</head>

<body>
    <div class="father">
        <span class="son">XXxxg霸<div class="img" style="vertical-align: text-bottom"></div></span>
        XXxx
    </div>
</body>

</html>